﻿@{
    ViewBag.Title = "MyTribune";
    Layout = "~/Views/Shared/_Layout_zone.cshtml";
}

<div class="contentcontainer">
    <div class="headings altheading">
        <h2>我的论坛列表</h2>
    </div>
    <div class="contentbox">
        <table width="100%">
            <thead>
                <tr>
                    <th>名称</th>
                    <th>发布者</th>
                    <th>发布时间</th>
                    <th>热议数</th>
                    <th>管理</th>
                    <th><input name="" type="checkbox" value="" id="checkboxall" /></th>
                </tr>
            </thead>
            <tbody>
                @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Tribune>)ViewData["myTri"]) 
                {
                <tr class="alt">
                    <td>
                        @item.Title
                    </td>
                    <td>
                        @item.Sponsor
                    </td>
                    <td>
                        @item.AddTime
                    </td>
                    <td>
                        @item.TopicNumber
                    </td>
                    <td>
                        <a href="@Url.Action("Edit", "Tribune", new { id=item.Id})" title=""><img src="@Url.Content("~/Content/img/icons/icon_edit.png")" alt="Edit" /></a>
                        <a href="@Url.Action("Details", "Tribune", new { id=item.Id})" title=""><img src="@Url.Content("~/Content/img/icons/icon_approve.png")" alt="Details" /></a>
                        <a href="@Url.Action("Delete", "Tribune", new { id=item.Id})" title=""><img src="@Url.Content("~/Content/img/icons/icon_delete.png")" alt="Delete" /></a>
                    </td>
                    <td><input type="checkbox" value="@item.Id" name="checkall" /></td>
                </tr>
                }
            </tbody>
        </table>
        <div style="clear: both;"></div>
    </div>     
</div>
